package com.lidong.day04;

public class PhoneMain {
    public static void main(String[] args) {
        //创建对象
        Phone hw = new Phone();
        System.out.println(hw.band);
        System.out.println(hw.price);
        hw.band = "华为 mate50";
        hw.price = 5000.5;
        System.out.println(hw.band+"----"+hw.price);
        hw.call();


        Phone xiaomi = new Phone();
        System.out.println(xiaomi.band);
        System.out.println(xiaomi.price);
        xiaomi.band = "华为 mate50";
        xiaomi.price = 5500.5;
        System.out.println(xiaomi.band+"----"+xiaomi.price);
        xiaomi.call();
    }
}
